<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>搜索资源</title>
</head>

<body>
    <form action="" method="post">
        搜索关键字：<input type="text" name="querykeys" />
        <input type="submit" value="搜索">
    </form>
    
    <table border="1">
        <tr>
            <th>id</th>
            <th>type</th>
            <th>title</th>
            <th>content</th>
            <th>url</th>
            <th>description</th>
            <th>digg</th>
        </tr>
        {% for resource in resources %}
                <tr>
                <td>{{ resource.id }}</td>
                <td>{{ resource.type }}</td>
                <td>{{ resource.title }}</td>
                <td>{{ resource.content }}</td>
                <td>{{ resource.url }}</td>
                <td>{{ resource.description }}</td>
                <td>{{ resource.digg }}</td>
                </tr>
        {% endfor %}
    </table>    
</body>
</html>